package com.singfan.core.dao.database.model.constant;

/**
 * 经营状态
 * Author: hansonghe
 * Date: 2015-08-20 11:48
 * Desc:
 */
public class BusinessStatusType {
    /**
     * 未审核
     */
    public static final int NOT_VERIFY = 0;

    /**
     * 审核通过
     */
    public static final int VERIFY_PASSED = 1;

    /**
     * 审核未通过
     */
    public static final int VERIFY_NOT_PASS = 2;

    /**
     * 被系统禁止营业
     */
    public static final int FORBIDDEN = 3;

    /**
     * 自己停业
     */
    public static final int CLOSED = 4;

    public static boolean isBusinessStatusType(int value){
        return (value>=0 && value<=4);
    }

    public static String getBusinessStatusTypeTest(int value){
        String result;

        if (value == NOT_VERIFY){
            result = "未审核";
        }
        else if (value == VERIFY_PASSED){
            result = "审核通过";
        }
        else if (value == VERIFY_NOT_PASS){
            result = "审核未通过";
        }
        else if (value == FORBIDDEN){
            result = "禁用";
        }
        else{
            result = "未知";
        }

        return result;
    }
}
